			<!-- left -->
            <div class="col-md-3">
            	<div class="content_left_wp">
                	<div class="login_area_1">
                    	<div class="box_login_home">
                        	<?php  if (isset($this->customer['id'])){?>
                            <p>Xin chào, <span> <a href="<?php echo site_url('tai-khoan');?>"><strong><?php echo $this->customer['fullname']?></strong></a></span></p>
							<p>Hiện bạn có: <span class="red"><?php echo $this->score_price["score"] ?></span> điểm</p>
                            <p><a href="<?php echo site_url('secure/logout');?>">Đăng xuất</a></p>
                            <div class="line_head"></div>
                            <?php }else {?>                            
                            <p class="p_no_padd"><i class="fa fa-sign-out"></i> Nếu bạn là thành viên</p>
                            <p class="button_login"><a href="<?php echo site_url(LOGIN);?>"><input name="" type="button" value="Đăng nhập"></a></p>
                            <p class="p_no_padd"><i class="fa fa-sign-out"></i> Chưa là thành viên</p>
                            <p class="button_dangky"><a href="<?php echo site_url(REGISTER);?>"><input name="" type="button" value="Đăng ký"></a></p>
                            <?php }?>
                            <div class="menu_box_login">
                                <ul>
                                    <li><i class="fa fa-chevron-right"></i> <a href="<?php echo site_url(LINK_FOR_NEW_USERS);?>">Dành cho thành viên mới</a></li>
                                    <li><i class="fa fa-chevron-right"></i> <a href="<?php echo site_url(LINK_RULE_USE);?>">Quy định sử dụng</a></li>
                                </ul>
                            </div>
                            <p class="danhchodaily"><a href="<?php echo site_url(LINK_FOR_PROCESS_AGENCY);?>"><img src="<?php echo base_url(ASSETPATH.'images/icon_daily.png')?>"> &nbsp; Đăng ký làm đại lý</a></p>
                        </div>
                    </div>
                    <div class="banner_1">
                    	<a href="<?php echo site_url(REGISTER);?>"><img src="<?php echo base_url(ASSETPATH.'images/banner_1.png')?>"></a>
                    </div>
                    <div class="search_left">
                    	<div class="box_content">
                        	<div class="title_head">
                            	<h3><i class="fa fa-search"></i> Tìm kiếm</h3>
                            </div>
                            <div class="form_search_wp">                            	
                                <?php echo form_open('cart/search', '');?>
                                    <input style="padding-left:10px" class="form_search" type="text" name="term" placeholder="<?php echo lang('search');?>"/>
                                    <input class="form_search_bt" name="" type="submit" value="Tìm kiếm">
                                </form>
                            </div>
                        </div>
                    </div>
                    <div class="box_wp hide_mobile">
                    	<div class="box_padding">
                            <h3 class="title_2">Danh mục sản phẩm</h3>
                            <div class="line_head"></div>
                            <div class="menu_danhmucsanpham_left">
                        	<div id='cssmenu'>
                            <ul>
                            <?php $caregory_icon = array(
														 '1'=> base_url(ASSETPATH.'images/danhmuc_icon_2.png'),
														 '2'=> base_url(ASSETPATH.'images/danhmuc_icon_4.png'),
														 '3'=> base_url(ASSETPATH.'images/danhmuc_icon_6.png'),
														 '4'=> base_url(ASSETPATH.'images/danhmuc_icon_1.png'),
														 '19'=>base_url(ASSETPATH.'images/danhmuc_icon_3.png'),
														 '20'=>base_url(ASSETPATH.'images/danhmuc_icon_5.png'),
														 '29'=>base_url(ASSETPATH.'images/danhmuc_icon_4.png'),
														 'default'=>base_url(ASSETPATH.'images/danhmuc_icon_4.png')
														);
							?>
                            	
                               <?php foreach($this->categories[0] as $cat_menu):?>
								<li <?php echo $cat_menu->active ? 'class="active has-sub"' : 'class="has-sub"'; ?>>
                                	<a href="<?php echo site_url($cat_menu->slug);?>"><span><img src="<?php if($caregory_icon[$cat_menu->id]!='')echo $caregory_icon[$cat_menu->id];else echo $caregory_icon['default']?>"><?php echo $cat_menu->name;?></span></a>
                                    <?php if( !empty($this->categories[$cat_menu->id]) ){?>
                                    	<ul>
                                        	 <?php  foreach ($this->categories[$cat_menu->id] as $sub_cat_menu){?>
                                             <li>
                                				<a href="<?php echo site_url($cat_menu->slug.'/'.$sub_cat_menu->slug); ?>"><?php echo $sub_cat_menu->name;?></a>
                                             </li>
                                             <?php }?>
                                        </ul>
                                    <?php }?>
                                </li>
                               <?php endforeach;?>
                            </ul>
                            </div>
                        </div>
                        </div>
                    </div>
                    <!--
                    <div class="banner_2">
                    	<div class="banner_2_a">
                            <p><a href="<?php echo site_url(LINK_SALE_BUY);?>"><img src="<?= base_url(ASSETPATH.'images/banner_2.png')?>"></a></p>
                            <span class="red"><a href="<?php echo site_url(LINK_SALE_BUY);?>">セットなら最大15%OFF！</a></span>
                        </div>
                        <div class="banner_2_b">
                            <p><a href="<?php echo site_url(LINK_SALE_BUY);?>"><img src="<?= base_url(ASSETPATH.'images/banner_3.png')?>"></a></p>
                            <span class="red"><a href="<?php echo site_url(LINK_SALE_BUY);?>">セットなら最大15%OFF！</a></span>
                        </div>
                        <div class="clear"></div>
                    </div>
                    -->
                    <!--
                    <div class="box_wp hide_mobile">
                    	<div class="box_padding">
                            <h3 class="title_2">Tin tức khuyến mãi</h3>
                            <div class="line_head"></div>
                            <div class="banner_3">
                            	<?php $count = 0; foreach($this->item_news as $item){?>
                                <div class="banner_3_a">
                                	<p><a href="<?php echo site_url(NEWS_DETAIL.$item->slug)?>"><img src="<?php echo base_url('uploads/images/small/news/'.$item->image);?>"></a></p>
                                    <span class="red"><a href="<?php echo site_url(NEWS_DETAIL.$item->slug)?>"><?php echo $item->title;?></a></span>
                                </div>	
								<?php $count ++; if( $count == 4) break;}?>                            	
                                <div class="xemthem">
                                	<p><a href="<?php echo site_url(NEWS);?>">..... Xem thêm .....</a></p>
                                </div>
                            </div>
                        </div>
                    </div>
                    -->
                    
                    <div class="box_wp hide_mobile">
                    	<div class="box_padding">
                            <h3 class="title_2" style="text-align:center">Bài viết</h3>
                            <div class="line_head"></div>
                            <div class="thongtin_wp">
                            	<div class="vanhoa">
                                    <?php foreach($this->item_blog as $item){?>
                                    <p><a href="<?php echo site_url(BLOGS_DETAIL.$item->slug)?>"><img src="<?php echo base_url('uploads/images/small/blogs/'.$item->image);?>"></a></p>
                                    <p><!--i class="fa fa-newspaper-o"></i--> <a href="<?php echo site_url(BLOGS_DETAIL.$item->slug)?>"><?php echo $item->title;?></a></p>
								<?php  }?>  
                                    <div class="xemthem" style="text-align:center">
                                		<p><a href="<?php echo site_url(BLOGS);?>">..... Xem thêm .....</a></p>
                                	</div>
                                </div>
                                <div class="newletter">
                                	<h3>Đăng ký Email</h3>
                                    <input class="newletter_ip" style="float:left"  name="news_replace" onkeypress="checkEmail(event,$(this))" type="text">
                                    <input class="newletter_bt" type="button">
                                    <div class="clear"></div>
                                </div>
                                <!--
                                <div class="banner_4">
                                	<p><a href="#"><img src="<?= base_url(ASSETPATH.'images/banner_9.png')?>"></a></p>
                                </div>
                                -->
                                
                                <div class="facebook">
            						<iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/plusmainichi.japanshop&height=280&show_faces=true&header=true&action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; width:100%; height:280px;" allowTransparency="true"></iframe>
                                </div>
								
                            </div>
                        </div>
                    </div>
                </div>
            </div>
<script language="javascript">
function checkEmail(e,input) {
	letter = true;
	if (e.keyCode == 13) {
		send_mail_receive(input.val(),input);
 	}
}
function Submit_email(){
	var input = $(".footer_email");
	send_mail_receive(input.val(),input);	
}
function send_mail_receive(email,input){
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;	
	if (!filter.test(email)){
		alert('Email không đúng định dạng, xin nhập lại!');
		email.focus;
		return false;
	}
	else{
		jQuery.ajax({
			url:"<?php echo site_url("secure/regis_newsletter") ?>",
			data:"email="+email,
			type:"post",
			success:function(result){
				input.val("");
				alert(result);
			}
		});
		
	}	
}

</script>